package com.ma.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;


import java.io.Serializable;

/**
 * @ProjectName: project
 * @Package: com.ma.entity
 * @ClassName: Admin
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/3/7 21:00
 * @Version: 1.0
 */

@Data
@Accessors(chain = true)
@TableName("admin")
public class Admin implements Serializable {
    @TableId(value = "id",type = IdType.AUTO )
    private Integer adminId;    //登陆id;

    @TableField("name")
    private String adminName;   //登陆名

    @TableField("phone")
    private String adminPhone;  //电话号码

    @TableField("image")
    private String adminImage;  //头像

    @TableField("level")
    private Integer adminLevel; //等级

    @TableField("password")
    private String adminPassword;   //密码


    public Admin() {
    }

    public Admin(Integer adminId, String adminName, String adminPhone, String adminImage, Integer adminLevel, String adminPassword) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.adminPhone = adminPhone;
        this.adminImage = adminImage;
        this.adminLevel = adminLevel;
        this.adminPassword = adminPassword;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminPhone() {
        return adminPhone;
    }

    public void setAdminPhone(String adminPhone) {
        this.adminPhone = adminPhone;
    }

    public String getAdminImage() {
        return adminImage;
    }

    public void setAdminImage(String adminImage) {
        this.adminImage = adminImage;
    }

    public Integer getAdminLevel() {
        return adminLevel;
    }

    public void setAdminLevel(Integer adminLevel) {
        this.adminLevel = adminLevel;
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }
}
